package com.cy.myblog.model;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name="tlogininfo")
public class TloginInfo implements Serializable{

	/**
	 * 登录信息
	 */
	private static final long serialVersionUID = 934018834382814418L;
	private String id;
	private String code;
	private Date loginTime;
	
	@Id
	@Column(name = "id", unique = true, nullable = false, length = 38)
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	@Temporal(TemporalType.TIMESTAMP)
	public Date getLoginTime() {
		return loginTime;
	}
	public void setLoginTime(Date loginTime) {
		this.loginTime = loginTime;
	}

	@Override
	public String toString() {
		return "TloginInfo{" +
				"id='" + id + '\'' +
				", code='" + code + '\'' +
				", loginTime=" + loginTime +
				'}';
	}
}
